<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>血库查询</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <style type="text/css">
        .input {
            width: 200px;
            height: 23px;
            margin: 2px auto;
        }

        .span {
            font-family: '微软雅黑', serif;
            display: block;
        }

        .a {
            text-decoration: none;
            font-family: '微软雅黑', serif;
            display: block;
            width: 200px;
            height: 30px;
            cursor: pointer;
            border: none;
            background: #114a93;
            color: white;
            font-size: 16px;
            padding: 4px 20px 0 20px;
            margin: 2px auto;
        }
    </style>
</head>
<body style="background:url(<%=basePath%>/background.jpg) repeat 40px -40px">
<span style="font-family: '微软雅黑',serif;font-size: 30px">血库查询</span>
<hr/>
<div style="float:left;margin: 120px  70px 0 0;">
    <a href="<%=basePath%>index.jsp" class="a" onMouseOver="this.style.background='#2569c1'"
       onmouseout="this.style.background='#114a93'">返回主页</a></div>
<form action="BloodBank!findBloodByState.action">

    <table align="center" style="margin: 120px 0 0 20px;background: #114a93;
    opacity:0.9;font-family: '微软雅黑',serif;color: linen;width:400px;">
        <tr>
            <td>
                <span class="span" style="width: 100px;">状态：</span>
            </td>
            <td style=" width: 160px;">
                <label>
                    <select name="bloodState" style="height: 23px;
            margin: 2px auto;  width: 150px;">
                        <option value="0"> 未审核</option>
                        <option value="1"> 为未用</option>
                        <option value="2"> 为已用</option>
                        <option value="3"> 为报废</option>
                    </select>
                </label>
            </td>
            <td>
                <input type="submit" name="suer" size="15" value="确认"
                       style="width:120px;height:20px;
                               cursor:pointer;border: none;background: #114a93;color: white;font-size: 16px;text-align: center"/>
            </td>
        </tr>
    </table>

</form>
<form method="post" action="" align="center">
    <table align="center"
           style="margin: 40px auto 20px;background: #114a93;opacity:0.9;font-family: '微软雅黑',serif;color: linen;width:
    1000px;text-align: center">
        <thead align="center">
        <tr>
            <th>
                编号
            </th>
            <th>
                采血人
            </th>
            <th>
                献血时间
            </th>
            <th>
                献血人
            </th>
            <th>
                献血量
            </th>
            <th>
                采血单位
            </th>
            <th>
                信息
            </th>
            <th>
                到期时间
            </th>
            <th>
                血型
            </th>
            <th>
                成分
            </th>
        </tr>
        </thead>
        <s:iterator value="bbs" var="b">
            <tr align="center">
                <td>
                        <s:property value="#b.bloodBankId"/>
                    &nbsp;
                <td>
                    <s:property value="#b.bloodCollection"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.bloodDate"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.bloodPerson"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.bloodVolume"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.department"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.message"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.overdue"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.bloodType.bloodType"/>
                    &nbsp;
                </td>
                <td>
                    <s:property value="#b.bloodName.bloodName"/>
                    &nbsp;
                </td>
            </tr>
        </s:iterator>
    </table>
    <table align="center" id="all" style="margin: 40px auto 20px;background: #114a93;opacity:0.9;font-family: '微软雅黑',serif;color: linen;width:
    1000px;text-align: center">
        <tr>
            <td>统计：</td>
            <td><s:property value="sum"/></td>
        </tr>
    </table>
</form>
</body>
</html>
